package com.kgc.ssm.service.impl;

import com.kgc.ssm.mapper.CloudServersMapper;
import com.kgc.ssm.service.CloudServersService;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@EnableScheduling
@Service
public class CloudServersServiceImpl implements CloudServersService {
    @Resource
    private CloudServersMapper cloudServersMapper;

    @Scheduled(cron = "0 0/1 * * * ?")
    @Override
    public void findStatus() {
        cloudServersMapper.findStatus(1L);
    }
}
